from pydantic import BaseModel, Field

class LoginForm(BaseModel):
    username: str = Field(..., description="用户名")
    password: str = Field(..., description="密码")

class UserForm(BaseModel):
    username: str = Field(..., description="用户名")
    password: str = Field(..., description="密码")
    phone:str = Field(None, description="手机号")